//
//  GameModel.swift
//  Swift2048
//
//  Created by LiynXu on 2016/9/28.
//  Copyright © 2016年 LiynXu. All rights reserved.
//

import UIKit
var numbers:Array<Int> = Array<Int>()
class GameModel: NSObject {
    
    var dimension:Int?{
        didSet{
        numbers.removeAll()
            for i in 0..<dimension! {
                numbers.append(0)
            }
        }
//        willSet{
//        newValue
//        }
    
    }
    
    var titles:Array = Array<Int>()
    
    var gTitles:Array = Array<Int>()
    
    var score:Int = 0
    
    var maxScore:Int = 0
    
    
    
    
    
}
